pygrub: Workaround for Solaris CR 1143256.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 10:58:21 +0000 (10:58 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 10:58:21 +0000 (10:58 +0000)
commitdc350ed2b518858eb5bc74adf17c1d1a8061c39c
tree4f4d260f50e556ef5f9ac8d23311b68c61b5f2ed
parent75c9ba79115c0f8c23132d29b992d30da34ae6c9
pygrub: Workaround for Solaris CR 1143256.

The Solaris curses library has a broken timeout() function: after a
first timeout() call with a positive value for an argument, subsequent
calls will fail to reset it. So, getch() always times out, confusing
the pygrub timer in the main loop. Add an extra check to avoid exiting
prematurely.

Signed-off-by: Frank van der Linden <frank.vanderlinden@sun.com>
tools/pygrub/src/pygrub